package com.yvan.leto.server.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.yvan.leto.server.domain.UserAgent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserAgentMapper extends BaseMapper<UserAgent> {

    List<UserAgent> selectByQuery(Pagination pagination);

    UserAgent findByLoginName(@Param("loginName") String loginName);

    boolean existLoginName(@Param("loginName") String loginName);
}
